From: LLVM Packaging Team Date: Tue, 16 Dec 2025 11:47:30 +0000 (+0100) Subject: wasm-ld-path X-Git-Tag: archive/raspbian/1%21.1.8-1+rpi1~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b24f5006c9e7426eca63bdd655766f995d606ee;p=llvm-toolchain-21.git wasm-ld-path =================================================================== Gbp-Pq: Topic wasm Gbp-Pq: Name wasm-ld-path.diff --- diff --git a/clang/lib/Driver/ToolChains/WebAssembly.cpp b/clang/lib/Driver/ToolChains/WebAssembly.cpp index 5054868b5f..bc69388fa7 100644 --- a/clang/lib/Driver/ToolChains/WebAssembly.cpp +++ b/clang/lib/Driver/ToolChains/WebAssembly.cpp @@ -19,6 +19,11 @@ #include "llvm/Support/Path.h" #include "llvm/Support/VirtualFileSystem.h" +#include "llvm/Config/llvm-config.h" // for LLVM_VERSION_MAJOR + +#define TOSTR2(X) #X +#define TOSTR(X) TOSTR2(X) + using namespace clang::driver; using namespace clang::driver::tools; using namespace clang::driver::toolchains; @@ -270,7 +275,7 @@ WebAssembly::WebAssembly(const Driver &D, const llvm::Triple &Triple, const char *WebAssembly::getDefaultLinker() const { if (TargetBuildsComponents(getTriple())) return "wasm-component-ld"; - return "wasm-ld"; + return "wasm-ld-" TOSTR(LLVM_VERSION_MAJOR); } bool WebAssembly::IsMathErrnoDefault() const { return false; }